package com.tesu.springdemo.day01;

import java.io.Serializable;

public class Person implements Serializable {  //实现序列化接口 数据传输 二进制
    private String name;
    private int age;

    //方法


    public void setAge(int age) {
        this.age = age;
    }

    //构造器  默认   空
    public Person() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
